<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>盒子边框</title>
    <style>
        .box1 {
            width: 500px;
            height: 300px;
            border-width: 5px;
            /* solid 实线边框 */
            border-style: solid;
            border-color: red;
        }
        .box2 {
            width: 500px;
            height: 300px;
            border-width: 5px;
            /* dashed 虚线边框 */
            border-style: dashed;
        }
        .box3 {
            width: 500px;
            height: 300px;
            border-width: 5px;
            /* dotted 点线边框 */
            border-style: dotted;
        }
        .box4 {
            width: 500px;
            height: 300px;
            /* 边框的复合写法，没有顺序，但一般按赵边框粗细、边框样式、边框颜色来写 */
            border: 2px dashed blue;
        }
        .box5 {
            width: 500px;
            height: 300px;
            border-top: 5px solid blue;
            border-bottom: 2px dashed green;
            border-left: 7px solid pink;
            border-right: 10px dotted black;
        }
    </style>
</head>
<body>
    <div class="box1"></div>
    <div class="box2"></div>
    <div class="box3"></div>
    <div class="box4"></div>
    <div class="box5"></div>
</body>
</html>